package com.dfbz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MainController {

    /**
     * @return 使用mvc默认视图解析器  跳转
     */
    @RequestMapping("index")
    public String index() {
        return "main/index";
}

    /**
     * 主页 退出
     *
     * @return
     */
    @RequestMapping("logout")
    public String logout() {
        return "main/index";
    }

    @RequestMapping("home")
    public String home() {
        return "html/home";
    }

    @RequestMapping("register")
    public String register() {
        return "main/register";
    }

    @RequestMapping("forget")
    public String forget() {
        return "main/forget";
    }

    @RequestMapping("user")
    public String user(){
        return "html/user";
    }

    @RequestMapping("sidebar")
    public String sidebar(){
        return "common/sidebar";
    }

    @RequestMapping("navbar")
    public String navbar(){
        return "common/navbar";
    }

    @RequestMapping("userLook")
    public String look(){
        return "html/user_look";
    }

    @RequestMapping("getDetail")
    public String getDetail(){
        return "html/detail";
    }

    @RequestMapping("myUser")
    public String myUser(){
        return "html/my_user";
    }

    @RequestMapping("article")
    public String getArticle(){
        return "html/article";
    }

    @RequestMapping("getArticleAdd")
    public String getArticleAdd(){
        return "html/article_add";
    }

    @RequestMapping("articleCollect")
    public String articleCollect(){
        return "html/article_collect";
    }

    @RequestMapping("articleDetail")
    public String articleDetail(){
        return "html/article_detail";
    }

    @RequestMapping("allDept")
    public String allDept(){
        return "html/department";
    }

    @RequestMapping("meeting")
    public String metting(){
        return "html/meeting";
    }
}
